]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove unused tracking of visibility in Chrome
authorAlexander Larsson <alexl@redhat.com>
Mon, 21 Feb 2011 14:30:40 +0000 (15:30 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 23 Feb 2011 14:24:28 +0000 (15:24 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=642881

js/ui/chrome.js

index 4fbaf8d5f803dfad80e68b041b5c9478005b8dce..9d2e84f5669af9f381606163d2bb150da4a765f6 100644 (file)
@@ -13,12 +13,6 @@ const Params = imports.misc.params;
 // normal mode (ie, outside the Overview), that surrounds the main
 // workspace content.
 
-const Visibility = {
-    FULL:       1,
-    FULLSCREEN: 2,
-    OVERVIEW:   3
-};
-
 const defaultParams = {
     visibleInOverview: false,
     visibleInFullscreen: false,
@@ -39,7 +33,6 @@ Chrome.prototype = {
 
         this._inFullscreen = false;
         this._inOverview = false;
-        this.visibility = Visibility.FULL;
 
         this._trackedActors = [];
 
@@ -199,19 +192,6 @@ Chrome.prototype = {
             else
                 this.actor.set_skip_paint(actorData.actor, false);
         }
-
-        let newVisibility;
-        if (this._inOverview)
-            newVisibility = Visibility.OVERVIEW;
-        else if (this._inFullscreen)
-            newVisibility = Visibility.FULLSCREEN;
-        else
-            newVisibility = Visibility.FULL;
-
-        if (newVisibility != this.visibility) {
-            this.visibility = newVisibility;
-            this.emit('visibility-changed', this.visibility);
-        }
     },
 
     _overviewShowing: function() {